// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) ansi lnc 

package com.example.airkissdemo.logic;

import android.util.Log;
import com.example.airkissdemo.core.BaseTask;
import com.example.airkissdemo.core.IOnTaskEndCallback;

// Referenced classes of package com.example.airkissdemo.logic:
//            AirKissManager, AirKissTask

public class OnAirKissTaskEndCallback
    implements IOnTaskEndCallback
{

    public OnAirKissTaskEndCallback(AirKissManager airkissmanager)
    {
        mManager = airkissmanager;
    }

    public void onTaskEnd(int i, BaseTask basetask)
    {
        if(i != 0)
        {
            Log.e("AirKissDemo.OnAirKissTaskEndCallback", "AirKiss task error");
            mManager.sendLogMsg(2, "DatagramSocket.send error!", 0);
        } else
        {
            AirKissTask airkisstask = (AirKissTask)basetask;
            if(!airkisstask.mHasBroadcastPrecursor)
                airkisstask.mHasBroadcastPrecursor = true;
            mManager.startNextTask(airkisstask);
        }
    }

    public static final int ERR_NETWORK = -1;
    public static final int ERR_NO = 0;
    private static final String TAG = "AirKissDemo.OnAirKissTaskEndCallback";
    private AirKissManager mManager;
}
